import type { App } from 'vue'
import { Pinia, createPinia } from 'pinia'

const store: Pinia = createPinia()

// 全局注册 store
function setupStore(app: App<Element>) {
  app.use(store)
}

export { store, setupStore }
